﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using NUnit.Framework;
using PropertyManagement.Core.Model;

namespace PropertyManagement.Test {
    [TestFixture]
    public class CommonTest {

        [Test]
        public void PhoneNumberRegexTest() {
            Console.WriteLine((int)BillType.ManagementFee);
             Regex phoneNumberReg2 = new Regex(@"^0\d{2,3}(\-)?\d{7,8}$",
                                                                 RegexOptions.Compiled);
            Assert.IsTrue(phoneNumberReg2.IsMatch("0755-82823111"));
        }
    }
}
